package com.taotao.order;

import com.taotao.common.core.constant.ServiceNameConstants;
import com.taotao.common.core.domain.Result;
import com.taotao.order.domain.PaymentFlow;
import com.taotao.order.factory.RemoteOrderFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 文件服务
 *
 * @author ruoyi
 */
@FeignClient( value = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = RemoteOrderFallbackFactory.class)
public interface RemoteOrderService
{
    /**
     * @Author ZhangYuQi
     * @Description 添加交易流水记录
     * @Date 下午7:53 2025/2/5
     * @Param [paymentFlow]
     * @return
     */
    @PostMapping("addTransactionFlows")
    public Result addTransactionFlows(@RequestBody PaymentFlow paymentFlow) ;


    /**
     * @Author ZhangYuQi
     * @Description  根据交易流水号查询交易流水记录
     * @Date 下午8:37 2025/2/5
     * @Param [tradeNo]
     * @return
     */
    @PostMapping("findByTradeNo")
    public Result findByTradeNo(String tradeNo);
}
